﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RoadTeam.Enums
{
    /// <summary>
    /// 同步单元信息枚举值
    /// </summary>
    public class BsUnitColumnDictionary
    {
        private Dictionary<String, ColumnInfo> _unitColumnFiled;
        public Dictionary<String, ColumnInfo> UnitColumnFiled
        {
            get { return _unitColumnFiled; }
            set { _unitColumnFiled = value; }
        }

        public BsUnitColumnDictionary()
        {
            UnitColumnFiled = new Dictionary<string, ColumnInfo>();
            UnitColumnFiled.Add("UnitIdentifier",new ColumnInfo("UnitIdentifier",String.Empty,String.Empty));
            UnitColumnFiled.Add("UnitName", new ColumnInfo("UnitName", String.Empty, String.Empty));
            UnitColumnFiled.Add("UnitCode", new ColumnInfo("UnitCode", String.Empty, String.Empty));
            UnitColumnFiled.Add("UnitFullName", new ColumnInfo("UnitFullName", String.Empty, String.Empty));
            UnitColumnFiled.Add("DoorTypeID", new ColumnInfo("DoorTypeIdentifier", "TbCsDoorType_Sys", "GetIdentitiferByID"));
            UnitColumnFiled.Add("OrganID", new ColumnInfo("OrganIdentifier", "SmOrgan_Sys", "GetIdentitiferByID"));
            UnitColumnFiled.Add("BuildingName", new ColumnInfo("BuildingName", String.Empty, String.Empty));
            UnitColumnFiled.Add("PavilionName", new ColumnInfo("PavilionName", String.Empty, String.Empty));
            UnitColumnFiled.Add("Floor", new ColumnInfo("Floor", String.Empty, String.Empty));
        }
    }

    /// <summary>
    /// 同步字典值枚举值
    /// </summary>
    public class BsPcDictColumnDictionary
    {
        private Dictionary<String, ColumnInfo> _columnFiled;
        public Dictionary<String, ColumnInfo>ColumnFiled
        {
            get { return _columnFiled; }
            set { _columnFiled = value; }
        }

        public BsPcDictColumnDictionary()
        {
            ColumnFiled = new Dictionary<string, ColumnInfo>();
            ColumnFiled.Add("App_Identifier", new ColumnInfo("DictIdentifier", String.Empty, String.Empty));
            ColumnFiled.Add("DictCode", new ColumnInfo("DictCode", String.Empty, String.Empty));
            ColumnFiled.Add("DictName", new ColumnInfo("DictName", String.Empty, String.Empty));
        }
    }

    /// <summary>
    /// 同步维修项目类型枚举值
    /// </summary>
    public class BsCsSortColumnDictionary
    {
        private Dictionary<String, ColumnInfo> _columnFiled;
        public Dictionary<String, ColumnInfo> ColumnFiled
        {
            get { return _columnFiled; }
            set { _columnFiled = value; }
        }

        public BsCsSortColumnDictionary()
        {
            ColumnFiled = new Dictionary<string, ColumnInfo>();
            ColumnFiled.Add("App_Identifier", new ColumnInfo("SortIdentitfier", String.Empty, String.Empty));
            ColumnFiled.Add("SortCode", new ColumnInfo("SortCode", String.Empty, String.Empty));
            ColumnFiled.Add("SortName", new ColumnInfo("SortName", String.Empty, String.Empty));
        }
    }

    /// <summary>
    /// 同步维修项目枚举值
    /// </summary>
    public class BsCsProjectColumnDictionary
    {
        private Dictionary<String, ColumnInfo> _columnFiled;
        public Dictionary<String, ColumnInfo> ColumnFiled
        {
            get { return _columnFiled; }
            set { _columnFiled = value; }
        }

        public BsCsProjectColumnDictionary()
        {
            ColumnFiled = new Dictionary<string, ColumnInfo>();
            ColumnFiled.Add("App_Identifier", new ColumnInfo("ProjectIdentitfier", String.Empty, String.Empty));
            ColumnFiled.Add("ProjectCode", new ColumnInfo("ProjectCode", String.Empty, String.Empty));
            ColumnFiled.Add("ProjectName", new ColumnInfo("ProjectName", String.Empty, String.Empty));
            ColumnFiled.Add("OrganID", new ColumnInfo("ProOrganIdentifier",  "SmOrgan_Sys", "GetIdentitiferByID"));
        }
    }

    /// <summary>
    /// 同步单元信息枚举值
    /// </summary>
    public class BsUnitColumnDictionary2
    {
        private Dictionary<String, ColumnInfo> _unitColumnFiled;
        public Dictionary<String, ColumnInfo> UnitColumnFiled
        {
            get { return _unitColumnFiled; }
            set { _unitColumnFiled = value; }
        }
        public BsUnitColumnDictionary2()
        {
            UnitColumnFiled = new Dictionary<string, ColumnInfo>();
            UnitColumnFiled.Add("UnitIdentifier", new ColumnInfo("UnitIdentifier", String.Empty, String.Empty));
            UnitColumnFiled.Add("UnitName", new ColumnInfo("UnitName", String.Empty, String.Empty));
            UnitColumnFiled.Add("UnitCode", new ColumnInfo("UnitCode", String.Empty, String.Empty));
            UnitColumnFiled.Add("UnitFullName", new ColumnInfo("UnitFullName", String.Empty, String.Empty));
            UnitColumnFiled.Add("DoorTypeID", new ColumnInfo("DoorTypeIdentifier", "TbCsDoorType_Sys", "GetIdentitiferByID"));
            UnitColumnFiled.Add("Floor", new ColumnInfo("Floor", String.Empty, String.Empty));
            UnitColumnFiled.Add("FloorCode", new ColumnInfo("FloorCode", String.Empty, String.Empty));
            UnitColumnFiled.Add("FloorName", new ColumnInfo("FloorName", String.Empty, String.Empty));

            UnitColumnFiled.Add("PavilionIdentifier", new ColumnInfo("PavilionIdentifier", String.Empty, String.Empty));
            UnitColumnFiled.Add("PavilionCode", new ColumnInfo("PavilionCode", String.Empty, String.Empty));
            UnitColumnFiled.Add("PavilionName", new ColumnInfo("PavilionName", String.Empty, String.Empty));
            UnitColumnFiled.Add("BuildingIdentifier", new ColumnInfo("BuildingIdentifier", String.Empty, String.Empty));
            UnitColumnFiled.Add("BuildingCode", new ColumnInfo("BuildingCode", String.Empty, String.Empty));
            UnitColumnFiled.Add("BuildingName", new ColumnInfo("BuildingName", String.Empty, String.Empty));
            UnitColumnFiled.Add("OrganIdentifier", new ColumnInfo("OrganIdentifier", String.Empty, String.Empty));
        }
    }



    public class BsPavilionColumnDictionary
    {
        private Dictionary<String, ColumnInfo> _unitColumnFiled;
        public Dictionary<String, ColumnInfo> UnitColumnFiled
        {
            		//PavilionIdentifier	,PavilionCode,PavilionName
            get { return _unitColumnFiled; }
            set { _unitColumnFiled = value; }
        }
        public BsPavilionColumnDictionary()
        {
            UnitColumnFiled = new Dictionary<string, ColumnInfo>();
            UnitColumnFiled.Add("PavilionIdentifier", new ColumnInfo("PavilionIdentifier", String.Empty, String.Empty));
            UnitColumnFiled.Add("PavilionName", new ColumnInfo("PavilionName", String.Empty, String.Empty));
            UnitColumnFiled.Add("PavilionCode", new ColumnInfo("PavilionCode", String.Empty, String.Empty));
        }
    }


    public class BsCustColumnDictionary
    {
        private Dictionary<String, ColumnInfo> _custColumnFiled;
        public Dictionary<String, ColumnInfo> CustColumnFiled
        {
            get { return _custColumnFiled; }
            set { _custColumnFiled = value; }
        }
        public BsCustColumnDictionary()
        {
            //CustName,CustCode,Tel,BirthDate,Email,TbRmCust.CustIdentifier,TbRmUnit.UnitIdentifier,TbRmCustUnitRela.RelaType
            CustColumnFiled = new Dictionary<string, ColumnInfo>();
            CustColumnFiled.Add("CustName", new ColumnInfo("CustName", String.Empty, String.Empty));
            CustColumnFiled.Add("CustCode", new ColumnInfo("CustCode", String.Empty, String.Empty));
            CustColumnFiled.Add("Tel", new ColumnInfo("Tel", String.Empty, String.Empty));
            CustColumnFiled.Add("BirthDate", new ColumnInfo("BirthDate", String.Empty, String.Empty));
            CustColumnFiled.Add("Email", new ColumnInfo("Email", String.Empty, String.Empty));
            CustColumnFiled.Add("RelaType", new ColumnInfo("RelaType", String.Empty, String.Empty));
        }
    }

    public class BsValidateProColumnDictionary
    {
        private Dictionary<String, ColumnInfo> _validateProColumnFiled;
        public Dictionary<String, ColumnInfo> ValidateProColumnFiled
        {
            get { return _validateProColumnFiled; }
            set { _validateProColumnFiled = value; }
        }
        public BsValidateProColumnDictionary()
        {
            ValidateProColumnFiled = new Dictionary<string, ColumnInfo>();
            ValidateProColumnFiled.Add("ValidateProIdentifier", new ColumnInfo("ValidateProIdentifier", String.Empty, String.Empty));
            ValidateProColumnFiled.Add("OrganID", new ColumnInfo("OrganIdentifier", "SmOrgan_Sys", "GetIdentitiferByID"));
            ValidateProColumnFiled.Add("ValidateProName", new ColumnInfo("ValidateProName", String.Empty, String.Empty));
            ValidateProColumnFiled.Add("ValidateProCode", new ColumnInfo("ValidateProCode", String.Empty, String.Empty));

            ValidateProColumnFiled.Add("DoorTypeName", new ColumnInfo("DoorTypeName", String.Empty, String.Empty));
            ValidateProColumnFiled.Add("DoorTypeCode", new ColumnInfo("DoorTypeCode", String.Empty, String.Empty));
            ValidateProColumnFiled.Add("DoorTypeIdentifier", new ColumnInfo("DoorTypeIdentifier", String.Empty, String.Empty));

            ValidateProColumnFiled.Add("RoomTypeName", new ColumnInfo("RoomTypeName", String.Empty, String.Empty));
            ValidateProColumnFiled.Add("RoomTypeCode", new ColumnInfo("RoomTypeCode", String.Empty, String.Empty));
            ValidateProColumnFiled.Add("RoomTypeIdentifier", new ColumnInfo("RoomTypeIdentifier", String.Empty, String.Empty));

            ValidateProColumnFiled.Add("ValidateObjectName", new ColumnInfo("ValidateObjectName", String.Empty, String.Empty));
            ValidateProColumnFiled.Add("ValidateObjectCode", new ColumnInfo("ValidateObjectCode", String.Empty, String.Empty));
            ValidateProColumnFiled.Add("ProviderID", new ColumnInfo("ProviderID", String.Empty, String.Empty));
            ValidateProColumnFiled.Add("MaintenanceTime", new ColumnInfo("MaintenanceTime", String.Empty, String.Empty));
            ValidateProColumnFiled.Add("ValidateObjectIdentifier", new ColumnInfo("ValidateObjectIdentifier", String.Empty, String.Empty));
        }
    }
}
